Skip to main content

Week 12 is the revision week for Mathematics for Data Science I.

This week introduces no new topics. The focus is on consolidating the concepts, formulas, properties, and algorithms covered in Weeks 1–11.

1. Set Theory

Review:

  • Number systems
  • Sets and set operations
  • Relations
  • Types of relations
  • Functions
  • Domain and range
  • Injective, surjective, and bijective functions
  • Composition and inverse functions

Key formulas:

A∪B,A∩B,A−B,AcA\cup B,\qquad A\cap B,\qquad A-B,\qquad A^c ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A\cup B| = |A|+|B|-|A\cap B|

2. Coordinate Geometry and Straight Lines

Review:

  • Cartesian coordinates
  • Distance and midpoint
  • Slope
  • Forms of a straight line
  • Parallel and perpendicular lines
  • Point-to-line distance
  • Straight-line fitting

Key formulas:

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1} y−y1=m(x−x1)y-y_1=m(x-x_1) Ax+By+C=0Ax+By+C=0 d=∣Ax0+By0+C∣A2+B2d=\frac{|Ax_0+By_0+C|}{\sqrt{A^2+B^2}}

3. Quadratic Functions

Review:

  • Quadratic functions
  • Roots
  • Discriminant
  • Vertex
  • Maximum and minimum
  • Quadratic equations

Key formulas:

Δ=b2−4ac\Delta=b^2-4ac x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a} xvertex=−b2ax_{\text{vertex}}=-\frac{b}{2a}

4. Polynomials

Review:

  • Polynomial operations
  • Division
  • Remainder theorem
  • Factor theorem
  • Roots and intercepts
  • Multiplicity
  • End behavior
  • Turning points
  • Polynomial graph construction

Key results:

P(a)=remainder when P(x) is divided by x−aP(a)=\text{remainder when }P(x)\text{ is divided by }x-a P(a)=0  ⟺  (x−a) is a factor of P(x)P(a)=0 \iff (x-a)\text{ is a factor of }P(x)

Maximum possible number of turning points:

n−1n-1

for a polynomial of degree nn.

5. Functions

Review:

  • Vertical and horizontal line tests
  • Exponential functions
  • Composition
  • Inverse functions
  • Transformations

Key formulas:

(f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)) f−1(f(x))=xf^{-1}(f(x))=x

6. Logarithmic Functions

Review:

  • Definition of logarithms
  • Logarithmic properties
  • Graphs
  • Exponential equations
  • Logarithmic equations

Key formulas:

log⁡a(xy)=log⁡ax+log⁡ay\log_a(xy)=\log_a x+\log_a y log⁡a(xy)=log⁡ax−log⁡ay\log_a\left(\frac{x}{y}\right) = \log_a x-\log_a y log⁡a(xr)=rlog⁡ax\log_a(x^r)=r\log_a x log⁡ax=ln⁡xln⁡a\log_a x=\frac{\ln x}{\ln a}

7. Sequences and Limits

Review:

  • Functions of one variable
  • Graphs and tangents
  • Limits of sequences
  • Limits of functions
  • One-sided limits
  • Continuity

Key formulas:

lim⁡n→∞an=L\lim_{n\to\infty}a_n=L lim⁡x→af(x)=L\lim_{x\to a}f(x)=L lim⁡x→a−f(x)=lim⁡x→a+f(x)\lim_{x\to a^-}f(x) = \lim_{x\to a^+}f(x)

For continuity:

lim⁡x→af(x)=f(a)\boxed{ \lim_{x\to a}f(x)=f(a) }

8. Derivatives

Review:

  • Differentiability
  • Derivative definition
  • Derivative rules
  • L'Hôpital's rule
  • Tangents
  • Linear approximation
  • Critical points
  • Local maxima and minima

Key formulas:

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h\to0} \frac{f(a+h)-f(a)}{h} ddx(xn)=nxn−1\frac{d}{dx}(x^n)=nx^{n-1} ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x)g(x)] = f'(x)g(x)+f(x)g'(x) ddxf(g(x))=f′(g(x))g′(x)\frac{d}{dx}f(g(x)) = f'(g(x))g'(x) L(x)=f(a)+f′(a)(x−a)L(x)=f(a)+f'(a)(x-a)

9. Integration

Review:

  • Area under a curve
  • Definite integrals
  • Antiderivatives
  • Integration rules
  • Fundamental Theorem of Calculus
  • Relationship between derivatives and integrals

Key formulas:

∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1}+C ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b)-F(a) F′(x)=f(x)F'(x)=f(x)

10. Graph Theory

Review:

  • Graph representation
  • Directed and undirected graphs
  • Degree
  • Paths
  • Adjacency matrices and lists
  • BFS
  • DFS
  • DAGs
  • Topological sorting

Key complexities:

BFS=O(∣V∣+∣E∣)\text{BFS}=O(|V|+|E|) DFS=O(∣V∣+∣E∣)\text{DFS}=O(|V|+|E|) Topological sorting=O(∣V∣+∣E∣)\text{Topological sorting}=O(|V|+|E|)

11. Graph Algorithms

Review:

  • Longest paths in DAGs
  • Transitive closure
  • Matrix multiplication
  • Relaxation
  • Single-source shortest paths
  • Dijkstra
  • Bellman-Ford
  • All-pairs shortest paths
  • Floyd-Warshall
  • Minimum spanning trees
  • Prim
  • Kruskal

Key complexities:

Dijkstra=O((∣V∣+∣E∣)log⁡∣V∣)\text{Dijkstra} = O((|V|+|E|)\log|V|) Bellman-Ford=O(∣V∣∣E∣)\text{Bellman-Ford} = O(|V||E|) Floyd-Warshall=O(∣V∣3)\text{Floyd-Warshall} = O(|V|^3) Prim=O((∣V∣+∣E∣)log⁡∣V∣)\text{Prim} = O((|V|+|E|)\log|V|) Kruskal=O(∣E∣log⁡∣E∣)\text{Kruskal} = O(|E|\log|E|)

12. Revision Checklist

Before completing revision, make sure you can:

  • Apply set operations and identify relation/function types.
  • Work with coordinate geometry and straight-line equations.
  • Solve quadratic equations and identify extrema.
  • Analyze and construct polynomial graphs.
  • Determine function composition and inverses.
  • Manipulate logarithmic and exponential equations.
  • Evaluate basic sequence and function limits.
  • Determine continuity.
  • Compute derivatives using standard rules.
  • Find tangent lines and linear approximations.
  • Identify critical points and local extrema.
  • Compute basic integrals and definite integrals.
  • Apply the Fundamental Theorem of Calculus.
  • Represent graphs using matrices and lists.
  • Apply BFS, DFS, and topological sorting.
  • Understand shortest-path algorithms and their conditions.
  • Apply Dijkstra and Bellman-Ford appropriately.
  • Understand Floyd-Warshall for all-pairs shortest paths.
  • Understand Prim and Kruskal for minimum spanning trees.
  • Compare the time complexities of the major graph algorithms.